/**
 * 路由表
 * @type {import ("vue-router").RouteRecordRaw[]}
 */
export const routes = [{
        path: "/:pathMatch(.*)*",
        name: "NotFound",
        component: () =>
            import ("@v/common/404nf.vue"),
    },
    //默认路由
    {
        path: "/",
        redirect: "/manage",
    },
    {
        path: "/show",
        name: "show",
        component: () =>
            import ("@v/show/Index.vue"),
        children: [{
                path: "",
                redirect: "/show/blogs/1",
            },
            {
                path: "blogs/:pageNum",
                name: "ShowBlog",
                component: () =>
                    import ("@v/show/blog.vue"),
            },
            {
                path: "books/:pageNum",
                name: "ShowBook",
                component: () =>
                    import ("@v/show/Book.vue"),
            },
            {
                path: "project",
                name: "ShowProject",
                component: () =>
                    import ("@v/show/Project.vue"),
            },
            {
                path: "list",
                name: "ShowList",
                component: () =>
                    import ("@v/show/List.vue"),
            },
            {
                path: "menu",
                name: "ShowMenu",
                component: () =>
                    import ("@v/show/Menu.vue"),
            },
            {
                path: "about",
                name: "ShowAbout",

                component: () =>
                    import ("@v/show/About.vue"),
            },
        ],
    },
    {
        path: "/manage",
        name: "Manage",
        component: () =>
            import ("@v/manage/Index.vue"),
        children: [{
                path: "",
                redirect: "/manage/articles/1",
            },
            {
                path: "login",
                name: "ManageLogin",
                component: () =>
                    import ("@v/manage/Login.vue"),
            },
            {
                path: "editor",
                name: "ManageEditor",
                component: () =>
                    import ("@v/manage/editor.vue"),
            },
            {
                path: "articles/:pageNum",
                name: "ManageArticle",
                component: () =>
                    import ("@v/manage/Article.vue"),
            },
        ],
    },
    {
        path: "/details/:id",
        name: "Details",
        component: () =>
            import ("@v/details/Index.vue")
    }
];